<template>
  <div class="et-header">
    <div class="et-header-left" @click="backPage">
      <img src="../images/login/back.png" class="back-icon"/><span class="back-icon-text">返回</span>
    </div>

    <div class="et-header-center">{{title}}</div>
  </div>
</template>

<script>
  export default {
    name: "etheader",
    props: {
      title: {
        type: String,
        default: ''
      }
    },
    methods: {
      backPage() {
        this.$emit('backPage');
      }
    }
  }
</script>

<style lang="stylus" scoped>
  .et-header
    display: flex
    align-items: center
    justify-content: center
    width: 100%
    height: 1.173rem
    background: #3CAFFF
    position: relative
    .et-header-left
      padding-top: 0.2rem
      padding-bottom: 0.2rem
      position: absolute
      display: flex
      align-items: center
      left 0.32rem
      .back-icon
        width: 0.373rem
        height: 0.373rem
      .back-icon-text
        font-size: 0.4rem
        color: #fff
        padding-left: 0.053rem
    .et-header-center
      font-size: 0.48rem
      font-weight: 500
      color: #fff
</style>
